package examples.rrc;

final class Signal {
  boolean value;

  synchronized void send() {
    notify();
    value = true;
  }

  synchronized void receive() {
    try {
      wait();
    } catch (InterruptedException e) {
    }
    value = false;
  }
}
